package com.zyy.joseata.util;

/**
 * @author zhangyy
 */
public class ThreadLocalUtil {

    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setTxId(String txId){
        threadLocal.set(txId);
    }

    public static String getTxId(){
        return threadLocal.get();
    }

    public static void removeTxId(){
        threadLocal.remove();
    }
}
